package com.atguigu.gulimall.search.ljzgc;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author daishaobo
 * @create 2021-03-31 11:00
 */
public class Demo {

    public static void main(String[] args) {

        //List<String> list = new CopyOnWriteArrayList<>();
      /*  List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        list.add("3");
        for (String s : list) {
            list.remove(s);
        }
        System.out.println(list);*/


   /*     List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        list.add("3");
        Iterator<String> iterator = list.iterator();
        while (iterator.hasNext()){

            System.out.println(iterator.next());
            iterator.remove();

        }*/
       //System.out.println(list);

     /*   Set<String> set = new HashSet<String>();

        List<String> list = new ArrayList<>();
        for (String s : set) {

        }
        for (String s : set) {

        }*/




        
    }





}
